package br.com.catalogodigital.factory;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class Factory_Generic {

	
	public Factory_Generic() {
		
	}


	public EntityManager manager(){
		
		EntityManagerFactory factory;
		EntityManager manager;
		factory = Persistence.createEntityManagerFactory("catalogodigital");
		manager = factory.createEntityManager();
		
		return manager;
		
		
	}

}
